package com.wpre.blogsystem.common.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-06
 * Time: 16:13
 */
@Data
public class UserLoginParam {
    @NotBlank(message = "用户名不能为空")//参数校验
    @Length(max = 20, min = 3,message = "用户名需不超过20个字符,且大于3个字符")//限制长度
    private String userName;


    @NotBlank(message = "密码不能为空")
    private String password;
}
